﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WMSpublic;

namespace Warehouse.Domain.DTO
{
    public class EnterStoragesSetDto
    {
        /// <summary>
        /// 入库id
        /// </summary>
        [Key]
        public int StockId { get; set; }
        /// <summary>
        /// 入库单号
        /// </summary>
        public string? StockCode { get; set; }
        /// <summary>
        /// 入库单类型
        /// </summary>
        public int? StockOrderType { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        public string? SorderNumber { get; set; }
        /// <summary>
        /// 供应商编号
        /// </summary>
        public string? VendorId { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        public string? VendorName { get; set; }
        /// <summary>
        /// 供应商联系人
        /// </summary>
        public string? VendorContact { get; set; }
        /// <summary>
        /// 供应商联系方式
        /// </summary>
        public string? VendorPhone { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string? MakePerson { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? MarkTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? SRremark { get; set; }
        /// <summary>
        /// 公司id
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 添加人姓名
        /// </summary>
        public string? AddName { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? AddTime { get; set; }

        /// <summary>
        /// 修改人姓名
        /// </summary>
        public string? UpdName { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdTime { get; set; }

        /// <summary>
        /// 删除人姓名
        /// </summary>
        public string? DelName { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DelTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool? IsDel { get; set; } = false;
        public List<newStockProductss> stockProducts { get; set; }
    }
    public class newStockProductss
    {
        /// <summary>
        /// 主键id
        /// </summary>
        public int StorehouseId { get; set; }
        /// <summary>
        /// 库位名称
        /// </summary>
        public string? StorehouseName { get; set; }
        /// <summary>
        /// <summary>
        /// 规格
        /// </summary>
        public string? Specs { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string? ProductsCode { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string? ProductsName { get; set; }
        /// <summary>
        /// 入库产品id
        /// </summary>
        public int StockProductId { get; set; }
        /// <summary>
        /// 入库id
        /// </summary>
        public int? StockId { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int? ProductsID { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string? Batch { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal? Sprice { get; set; }
        /// <summary>
        /// 入库数
        /// </summary>
        public int? Quantity { get; set; }
        /// <summary>
        /// 库位
        /// </summary>
        public int? Binlocation { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int? StateSP { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string? ShenHePeople { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? ShenHeTime { get; set; }
        /// <summary>
        /// 公司id
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public int? user_id { get; set; }
        /// <summary>
        /// 添加人姓名
        /// </summary>
        public string? AddName { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? AddTime { get; set; }

        /// <summary>
        /// 修改人姓名
        /// </summary>
        public string? UpdName { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdTime { get; set; }

        /// <summary>
        /// 删除人姓名
        /// </summary>
        public string? DelName { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DelTime { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool? IsDel { get; set; } = false;
    }


}
